package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.dto.StudentRequestDTO;
import com.example.demo.controller.bean.Result;
import com.example.demo.mapper.entity.Student;
import com.example.demo.mapper.entity.StudentView;
import com.example.demo.utils.PageBo;
import com.example.demo.utils.PageVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface StudentManageService extends IService<Student> {

    PageVo<StudentView> getStudentList(PageBo pageBo);

  //  PageVo<StudentView> searchStudent(String studentNum, String name, String college, String major, PageBo pageBo);

    Result<String> deleteStudent(StudentView student);

    Result<String> updateStudent(StudentRequestDTO request, String college, String major);

  //  Result<String> addStudent(StudentRequestDTO request, String college, String major);

    void saveData(List<Student> studentList);

    //大数据量CSV文件导入数据库
    void csvImportAsync(MultipartFile file);

    public Student addStudent(StudentRequestDTO request, String college, String major);

    void deleteList(List<StudentView> studentList);

    PageVo<StudentView> searchStudent(String studentNum, String name, String college, String major, PageBo pageBo);
}
